import * as React from "react";
import { observer } from "mobx-react";
import { Table } from "antd"; //columnsDataCLass
import { columnsDataCLass } from "../../../../../../data/interface/publicInterface";
import "./index.less";

export interface ConditionTableProps {
  dataSouce: any[];
  columns: columnsDataCLass[];
}

export interface ConditionTableState {}
@observer
class ConditionTable extends React.Component<
  ConditionTableProps,
  ConditionTableState
> {
  render() {
    return (
      <>
        <div className="rowcon_body">
          <Table
            // size="small"
            // style={{ height: 300 }}
            columns={this.props.columns}
            dataSource={this.props.dataSouce}
            pagination={false}
            // scroll={{ y: 300, x: 1500 }}
            sticky
          />
        </div>
      </>
    );
  }
}

export default ConditionTable;
